package me.zhengjie.modules.hanzi.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 汉字评分配置属性类
 */
@Data
@Component
@ConfigurationProperties(prefix = "hanzi.score")
public class HanziScoreConfigProperties {

    /**
     * 标准图像大小
     */
    private int imageSize = 64;
    
    /**
     * 评分权重
     */
    private Weights weights = new Weights();
    
    /**
     * 权重内部类
     */
    @Data
    public static class Weights {
        /**
         * 形状相似度权重
         */
        private double shape = 0.4;
        
        /**
         * 笔画质量权重
         */
        private double strokeQuality = 0.3;
        
        /**
         * 结构权重
         */
        private double structure = 0.2;
        
        /**
         * 美观度权重
         */
        private double aesthetic = 0.1;
    }
} 